package com.example.service;

import com.example.utils.IPUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;


@Service
public class SysServerServiceImpl implements SysServerService {

    Logger logger = LoggerFactory.getLogger(getClass());

    @Value("${server.port}")
    private int port;

    @Override
    public String getServerKey() {
        return IPUtils.getLocalIP() + ":" + port;
    }
}
